import { request } from "@/utils/service"

/** 列表 */
export function bannerListApi(data: any) {
  return request({
    url:"/system/banner/list",
    method: "POST",
    data
  })
}

/** 新增 */
export function addBannerApi(data: any) {
  return request({
    url:"/system/banner/add",
    method: "POST",
     headers: {
      "Content-Type": "multipart/form-data;"
    },
    data
  })
}

/** 修改 */
export function editBannerApi(data: any) {
  return request({
    url:"/system/banner/update",
    method: "POST",
     headers: {
      "Content-Type": "multipart/form-data;"
    },
    data
  })
}

/** 修改状态 */
export function editBannerStatusApi(data: any) {
  return request({
    url:"/system/banner/update/status",
    method: "POST",
    data
  })
}

/** 删除 */
export function delBannerApi(data: any) {
  return request({
    url:"/system/banner/delete",
    method: "POST",
    data
  })
}